<?php use_helper('jQuery') ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>
      <?php if (!include_slot('title')): ?>
        beamR - Create Professional Presentations
      <?php endif; ?>
    </title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_javascripts() ?>
    <?php include_stylesheets() ?>
    <!--[if IE]>
      <link rel="stylesheet" href="/css/bluetrip/css/ie.css" type="text/css" media="screen, projection" />
    <![endif]-->
  </head>
  <body>
    <div id="container" class="container">
      <div id="header" class="span-24">
        <h1 class="span-4 prefix-1"><a href="/">beamR</a></h1>
        <div id="menu" class="span-18 last">
          <ul>
            <?php if ($sf_user->isAuthenticated()) : ?>
              <li><?php echo link_to('My presentations', '@presentation') ?></li>
              <li><a href="/"><?php echo _('Help') ?></a></li>
              <li><?php echo link_to($sf_user, '@user_edit') ?></li>
              <li><?php echo link_to('Logout', '@sf_guard_signout') ?></li>
            <?php else: ?>
              <li><?php echo link_to('Sign In', '@sf_guard_signin') ?></li>
              <li><?php echo link_to('Register', '@user_register') ?></li>
            <?php endif; ?>
          </ul>
        </div>
      </div>
      <div id="content" class="span-24">
        <?php if (has_slot('no_sidebar')): ?>
          <div id="center" class="span-24">
        <?php else: ?>
          <div id="center" class="span-19">
        <?php endif; ?>
          <?php if ($sf_user->hasFlash('success')): ?>
            <div class="flash_success success">
              <?php echo $sf_user->getFlash('success') ?>
            </div>
          <?php endif; ?>

          <?php if ($sf_user->hasFlash('notice')): ?>
            <div class="flash_notice notice">
              <?php echo $sf_user->getFlash('notice') ?>
            </div>
          <?php endif; ?>

          <?php if ($sf_user->hasFlash('error')): ?>
            <div class="flash_error error">
              <?php echo $sf_user->getFlash('error') ?>
            </div>
          <?php endif; ?>

          <?php echo $sf_content ?>
        </div>

        <?php if (!has_slot('no_sidebar')): ?>
          <div id="sidebar" class="span-5 last">
            <?php if (!include_slot('sidebar')): ?>
              Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
            <?php endif; ?>
          </div>
        <?php endif ?>
      </div>
      <div id="footer" class="span-24">
        <ul>
          <li><a href="/"><?php echo _('Home') ?></a></li>
          <li>Contact</li>
        </ul>
        <p> - beamR, create professional presentations</p>
      </div>
    </div>
  </body>
</html>
